package com.mall.common.constrant;

import lombok.Getter;

/**
 * @author
 * @date 2020/4/7
 */
public class WareConstant {
    public enum PurchaseStatusEnum {
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"),
        FINISHED(3, "完成"),
        FAILED(4, "失败");
        /**
         * 编号
         */
        @Getter
        private Integer code;
        /**
         * 描述
         */
        private String msg;

        PurchaseStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
    public enum PurchaseDetailStatusEnum {
        CREATED(0, "新建"),
        ASSIGNED(1, "已分配"),
        BUYING(2, "正在采购"),
        FINISHED(3, "完成"),
        FAILED(4, "失败");
        /**
         * 编号
         */
        @Getter
        private Integer code;
        /**
         * 描述
         */
        private String msg;

        PurchaseDetailStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

}
